home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-13
/
me_cd22.zip
/
MUTT2.ZIP
/
MOD.MUT
< prev
next >
Wrap
Lisp/Scheme
|
1992-04-27
|
176b
|
6 lines
;; mod.mut : modulo
;; (mod n base) == n modulo base == n - (n/base)*base
;; C Durland Public Domain
(defun mod (int n base) HIDDEN { (- n (* (/ n base) base)) } )